﻿using System;
using System.Collections.Generic;

namespace Fuse8.DomainFramework.Domain
{
    /// <summary>
    /// Base contract for domain entity - "super type of layer"
    /// </summary>
    public interface IEntityObject<TKey> : IEntityObject, IEqualityComparer<IEntityObject<TKey>>
        where TKey : IComparable<TKey>, IEquatable<TKey>
    {
        /// <summary>
        /// Identification field
        /// </summary>
        TKey Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        void IncreaseId();
    }
}
